package com.supermarket.manage.common.dto.ucenter.response;

import com.baomidou.mybatisplus.annotation.TableField;
import com.supermarket.manage.common.pojo.Permission;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.List;

/**
 * 用户信息数据对象
 *
 * @author Faxon
 * @version 1.0
 * @date 2020-02-17 17:42
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("UserAndToken:用户信息数据对象(携带token)")
public class UserAndTokenResponse implements Serializable {

    private static final long serialVersionUID = 5856388697084551894L;
    /**
     * 用户id
     */
    @ApiModelProperty(value = "用户id")
    private Long id;

    /**
     * 客户id
     */
    @ApiModelProperty(value = "客户id")
    @NotBlank(message = "客户id不能为空")
    private String buyerId;

    /**
     * 用户名
     */
    @ApiModelProperty(value = "用户名")
    private String username;

    /**
     * 注册手机号
     */
    @ApiModelProperty(value = "注册手机号")
    private String phone;

    /**
     * 超市名称
     */
    @ApiModelProperty(value = "超市名称")
    private String shopName;

    /**
     * 用户角色
     */
    @ApiModelProperty(value = "用户角色")
    private String roleName;

    /**
     * token
     */
    @ApiModelProperty(value = "token")
    private String token;

    /**
     * 菜单栏
     */
    @ApiModelProperty(value = "菜单栏")
    private List<MenuNode> menuList;
}
